package com.geline.uploadfile.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 存储方式
 * @author: mengxin
 * @date: 2022/11/14 15:45
 */
@AllArgsConstructor
@Getter
public enum FileServerEnum {
    local(false, "本地存储"),
    remote(true, "云端存储");

    //云服务器
    private Boolean isEcs;
    private String desc;

    public String getLabel() {
        return desc;
    }

    public Object getValue() {
        return this.name();
    }
}
